package org.xx.armory.swing.builders;

import org.xx.armory.objectparser.ParsedObjectBuilder;

public class SeparatorModelBuilder
        extends ParsedObjectBuilder<SeparatorModel> {
    private boolean spring;

    public SeparatorModelBuilder() {
        this.spring = false;
    }

    public final SeparatorModelBuilder setSpring(
            boolean spring
    ) {
        this.spring = spring;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public SeparatorModel build() {
        return new SeparatorModel(getLineInfo(), this.spring);
    }
}
